#!/usr/bin/python
"""Some indicators to appear in the Stock Indicators window.
"""

from misc import misc
import datetime as dt
import misc.quoteperiod as qp
# import system.navalasystem as na
import stockind as ind

# reference datetime for guiaux
readRefDt = misc.EndOfDay(dt.datetime.today())

# create objects, but most important, list thereof
ind0 = ind.Min1QuoteCount("Min1QC10day")
ind0.numDays = 10

ind1 = ind.Volume("LastVolume")

ind2 = ind.Close("LastClose")

ind3 = ind.Volatility("Volat20Day")
ind3.size = 20

ind4 = ind.VolatilityHourly("Volat28Hour")
ind4.size = 28

_aa = [ind0, ind1, ind2, ind3, ind4]


# TODO: Make this some kind of setup
flagsChecked = [False]*len(_aa)

# then I will have something calculated from this fucking data, and some framework, finally
# see if it is not too fucking slow

def GetCheckedIndicators():
    return [x for (x, flag) in zip(_aa, flagsChecked) if flag]

